import 'package:school_assistant/generated/json/base/json_convert_content.dart';
import 'package:school_assistant/data/order_extra_entity.dart';

OrderExtraEntity $OrderExtraEntityFromJson(Map<String, dynamic> json) {
	final OrderExtraEntity orderExtraEntity = OrderExtraEntity();
	final String? time = jsonConvert.convert<String>(json['time']);
	if (time != null) {
		orderExtraEntity.time = time;
	}
	final String? price = jsonConvert.convert<String>(json['price']);
	if (price != null) {
		orderExtraEntity.price = price;
	}
	final String? code = jsonConvert.convert<String>(json['code']);
	if (code != null) {
		orderExtraEntity.code = code;
	}
	return orderExtraEntity;
}

Map<String, dynamic> $OrderExtraEntityToJson(OrderExtraEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['time'] = entity.time;
	data['price'] = entity.price;
	data['code'] = entity.code;
	return data;
}